<!--
 * @Author: 黄达全
 * @Date: 2024-08-08 16:15:30
 * @LastEditTime: 2024-08-11 12:56:12
-->
<script lang="ts" setup>
const {size,src}=defineProps({
    size:{
        type:Number,
        default:30
    },
    src:{
        type:String,
    }
})

</script>


<template>

    <el-avatar v-if="src" :size="size" :src="src" />

    <el-avatar v-else :size="size" src="/img/admin-icon.png" />
</template>

<style lang="scss" scoped>

</style>
